package myapps.ttclient.protocol.message.drawingscreen;

import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.GlobalVariables;
import myapps.ttclient.baseclass_and_interface.TTClientMessage;

public class DSPointerMessage extends TTClientMessage {

	private int id = 0;
	
	public DSPointerMessage(int id)
	{
		this.id = id;
	}
	
	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException {
		dos.writeByte(DS_POINTER);
		dos.writeInt(GlobalVariables.NO_LENGTH_CODE);
		
		dos.writeByte(id);
	}

}
